﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Himp.Erp
{
    /// <summary>
    /// 物料调拨
    /// </summary>
    public class MaterialAllocateRec : FullAuditedAggregateRoot<Guid>, IMultiTenant
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// From所属仓库Id
        /// </summary>
        public Guid FromMaterialWhseId { get; set; }

        /// <summary>
        /// From所属仓库Id
        /// </summary>
        public MatlWhse FromMaterialWhse { get; set; }

        /// <summary>
        /// From所属仓库Id
        /// </summary>
        public Guid ToMaterialWhseId { get; set; }

        /// <summary>
        /// From所属仓库Id
        /// </summary>
        public MatlWhse ToMaterialWhse { get; set; }

        /// <summary>
        /// 单据状态
        /// </summary>
        public int Stas { get; set; }


        /// <summary>
        /// 备注
        /// </summary>
        public string? Exp { get; set; }

        /// <summary>
        /// 品种数
        /// </summary>
        public int Varieties { get; set; }

        /// <summary>
        /// 调拨金额
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal AllocateAmt { get; set; }

        /// <summary>
        /// 调拨单明细
        /// </summary>
        public List<MaterialAllocateDetl> MaterialAllocateDetls { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

    }
}
